# _*_coding     : UTF_8_*_
# Author        :Jie Shen
# CreatTime     :2021/12/30 19:36
import os
import pickle


def load_obj(name):
    with open('obj/' + name + '.pkl', 'rb') as f:
        return pickle.load(f)

# 321477
# 321477
# 328003

# obj = load_obj("province_city_district")
# p = obj["河北省"]
# print(p.get('offset'))
# print(p["张家口市"])
# offset = p["张家口市"]["阳原县"].get("offset")
# print("offset: ", offset)

# for city in p:
#     if city == "offset":
#         continue
#     district = p.get(city)
#     print(city, end=": ")
#     for d in district.keys():
#         if d == "offset":
#             continue
#         print(district, end=",")
#     print()
